package com.ruoyi.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 订单对应的产品对象 web_mall_user_order_product
 *
 * @author wsliupan@126.com
 * @date 2021-06-19
 */
@ApiModel("订单保存的对象")
public class WebMallUserOrderSaveVO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "userId")
    @NotNull(message = "userId不能为null")
    private Integer userId;

    @ApiModelProperty(value = "地址ID")
    private Integer addressId;

    @ApiModelProperty(value = "是否使用积分")
    private Integer useScore;

    private List<WebMallUserOrderProductSaveVO> orderProductSaveVOS;

    public List<WebMallUserOrderProductSaveVO> getOrderProductSaveVOS() {
        return orderProductSaveVOS;
    }

    public void setOrderProductSaveVOS(List<WebMallUserOrderProductSaveVO> orderProductSaveVOS) {
        this.orderProductSaveVOS = orderProductSaveVOS;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getUseScore() {
        return useScore;
    }

    public void setUseScore(Integer useScore) {
        this.useScore = useScore;
    }
}
